package com.john.sqwen.ecbc.commons.annotations;

import com.john.sqwen.ecbc.commons.enums.DataSourceType;

import java.lang.annotation.*;

/**
 * @author john_sqwen
 * @packageName com.john.sqwen.ecbc.commons.annotations
 * @date 2022/4/24
 * @projectName ecbc-base
 * @Description DataSource
 **/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DataSource {
    /**
     * 切换数据源名称
     */
    public DataSourceType value() default DataSourceType.MASTER;
}
